#include <stdio.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int question1();
int question2();
int q3max(int x, int y);
int question3();
int main(int argc, char **argv)
{
	question3();
	return 0;
}
// 1.1
int question1()
{
	printf("This is a C program.\n");
	return 0;
}
// 1.2 求两整数之和
int question2()
{
	int a, b, sum;
	a = 123;
	b = 456;
	sum = a + b;
	printf("sum is %d\n", sum);
	return 0;
}
// 1.3 求两整数中较大者
int q3max(int x, int y)
{
	int z;
	if (x > y)
		z = x;
	else
		z = y;

	return (z);
}
int question3()
{
	int a, b, c;
	scanf("%d,%d", &a, &b);
	printf("%d,%d\n", a, b);
	c = q3max(a, b);
	printf("max=%d\n", c);
	return 0;
}
